"use client"

import { Button } from "../function-component/_client/Button";

export default function ErrorBoundary({error, reset}:{
  error: Error;
  reset: () => void;
}) {
  return (
    <main>
      <h1 className="text-4xl text-red-700 font-bold">
        Error occurred
      </h1>
      <h3>{error.message}</h3>
      <Button onClick={reset} className="text-4xl text-blue-600">
        Reset
      </Button>
    </main>
  )
}
